import httpReqeust from "../config";

const model = "/bpmn/task/";

// 分页查询
export const page = (data) => {
  return httpReqeust.post(model + "page", data);
};

export const pageMyTask = (data) => {
  return httpReqeust.post(model + "pageMyTask", data);
};

// 删除
export const delById = (id) => {
  return httpReqeust.get(model + "delete?id=" + id);
};

// 根据id查询
export const getById = (id) => {
  return httpReqeust.get(model + "getById?id=" + id);
};

// 更新和删除
export const addOrUpdate = (data) => {
  return httpReqeust.post(model + "addOrUpdate", data);
};

export const start = (id) => {
  return httpReqeust.get(model + "start?id="+id);
};

export const resolve = (data) => {
  return httpReqeust.post(model + "resolve", data);
};


